package org.slusk.thynwor.util;

public class Coordinates {
	public int x;
	public int y;
	
	public Coordinates(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public Coordinates(Coordinates coords) {
		this.x = coords.x;
		this.y = coords.y;
	}

	public String toString() {
		return x + ", " + y;
	}
	
	public boolean equals(Object obj) {
		if (obj == this) return true;
		if (this.getClass() != obj.getClass()) return false;
		Coordinates other = (Coordinates) obj;
		return this.x == other.x && this.y == other.y;
	}
}
